package com.henu.ocr.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.henu.ocr.annotation.Description;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;


@Data
@TableName("company")
@Builder
@SuppressWarnings("all")
@AllArgsConstructor
@NoArgsConstructor
public class Company implements Serializable {
    private static final long serialVersionUID = 1L;

    @Description(value = "公司ID，主键，不可为NULL")
    @TableId(value = "company_id")
    private Integer companyId;

    @Description(value = "公司名称，长度不超过100字符，不可为NULL")
    @TableField("company_name")
    private String companyName;

    @Description(value = "父公司ID")
    @TableField("father_company")

    private Integer fatherCompanyId;

    @Description(value = "级别，局，公司，分公司，enum，不可为NULL")
    @TableField("type")
    private String type;

    @TableField("indexs")
    @Description("索引")
    private String indexs;

    @TableField("mdm_pk_corp")
    @Description("主数据系统公司的主键")
    private String mdmPkCorp;

    @TableField("mdm_code")
    @Description("主数据系统公司的编码")
    private String mdmCode;
}